<back-to-top class="back_top" title="返回顶部"></back-to-top>
<div class="tab-pane fade in active" >
    <p class="alert alert-danger" ng-show="vo.tip" ng-click="vo.tip=!vo.tip">
        {{vo.msg}}
    </p>
    <div class="row">
        <div class="col-md-5">
            <label for="basic-url">密码<span style="font-size:10px;color: #ddd;"> 首次登陆请设置</span></label>
            <div class="input-group">
                <input type="{{vo.show?'text':'password'}}" class="form-control" ng-model="user.password" >
                <span class="input-group-addon" ng-click="vo.show=!vo.show">
                    <i class="glyphicon glyphicon-eye-open"></i>
                </span>
                <span class="input-group-addon btn-setting" ng-click="setting(1)">设  置</span>
            </div>
        <br>
            <label for="basic-url">邮箱</label>
            <div class="input-group">
                <input type="text" ng-model="user.email" class="form-control">
                <span class="input-group-addon btn-setting" ng-click="setting(2)">设  置</span>
            </div>
        <br>
            <p>
                <label for="basic-url">收货地址设置</label>
            </p>
            <div ng-repeat="(index, addr) in user.address">
                <div class="input-group" >
                    <div class="radio radio-danger input-group-addon">
                        <input type="radio" name="radio1" id="radio2"
                        ng-click="radio(index)" 
                        ng-value=true ng-model="addr.type">
                        <label for="radio2">
                            设置默认
                        </label>
                    </div>
                    <input type="text" ng-model="addr.name" placeholder="请输入收件人姓名" class="form-control">
                    <input type="text" ng-model="addr.mobile" placeholder="请输入收件人手机号" class="form-control">
                    <input type="text" ng-model="addr.addr" placeholder="请输入收件人详细地址" class="form-control">
                    <input type="text" ng-model="addr.zip" placeholder="请输入邮编号" class="form-control">
                </div>
                <br>
            </div>
            <p class="alert-danger" ng-if="user.type==3"> {{vo.msg}} </p>
            <p style="text-align: center;">
                <button class="btn btn-primary" ng-click="setting(3)">设 置</button>
            </p>
        </div>
        <div class="col-md-3"></div>
        <div class="col-md-4">
            <div class="alert alert-info" role="alert">
                <h4 class="me-tab-2-title">友情提示</h4>
                <p>设置密码可以让您下次轻松登录我们网站</p>
                <br>
                <p>设置邮箱，当你购买物品有版本更新时候，我们会第一时间通过邮箱来通知你</p>
            </div>
        </div>
    </div>
</div>

